﻿namespace MicroCloud.Events
{
    /// <summary>
    /// 配置文件更改事件数据
    /// 具体配置节点需要判断配置发生了变化再做对应的处理
    /// </summary>
    public class ConfigurationChangeEventData : EventDataBase
    {
        /// <summary>
        /// 初始化一个配置文件更改事件数据的新实例
        /// </summary>
        /// <param name="configuration"><see cref="IConfiguration"/>对象</param>
        public ConfigurationChangeEventData(IConfiguration configuration)
        {
            Check.NotNull(configuration, nameof(configuration));

            Configuration = configuration;
        }

        /// <summary>
        /// 获取 <see cref="IConfiguration"/>对象
        /// </summary>
        public IConfiguration Configuration { get; }

    }
}
